
README:

The code in this directory will replicate the tables and figures in the paper and online appendix of “Shared Space and Civic Engagement: Block Parties and Voter Turnout in Philadelphia”
 
Requirements: 
 
The code scripts were tested using R version 4.3.1 and the denoted versions of the packages. 
· psych 2.3.6
· ggplot2 3.4.4
· gridExtra 2.3
· merTools 0.6.1
· stargazer 5.2.3
· tidyverse 2.0.0
· DescTools 0.99.53
· sf 1.0-14
· spatstat 3.0-8
  
 
Instructions:
 
Download the replication archive and make a note of the path. Open an R (or RStudio) session. 

The code "[download location path]/Replication materials/"Replication Code Shared Space Civic Engagement June 2024.R" will call all necessary files.

Figures and tables will be printed in the console and those that are printed to files will be saved to working directory. 
  
 
Description of files and data:

[download location path]/Replication materials” – Folder containing all files
·“Codebook June 2024.pdf” – Lists and describes data and variables used in analyses 
·"Replication Code Shared Space Civic Engagement June 2024.R" - R file that contains replication code 
·“sharedspacedatav2.csv” – De-identified data on Philadelphia registered voters linked to tract demographics and block party data
·“blkparty_points1_copy.csv” – Data on location and nature of block parties in Philadelphia (2006 to 2016). (Shared by Shrobona Karkun Sen: https://shrobona.carto.com/me). 
·"full100_party_wgeo_andlatlon_reduced.geojson" - De-identified data on Philadelphia registered voters linked to block party data and spatial indicators
·"blkparty_points1_copy.geojson" - Data on spatial location of block parties


[Note] Figures 1-2 and Table A2 do not draw on empirical data
